package service.impl;

import bean.Cinema;
import dao.CinemaDao;
import dao.impl.CinemaDaoImpl;
import service.CinemaService;

import java.util.List;

public class CinemaServiceImpl implements CinemaService {
    private CinemaDao cinemaDao = new CinemaDaoImpl();

    @Override
    public List<Cinema> getAllCinema() {
        return cinemaDao.getAllCinema();
    }

    @Override
    public Cinema getCinemaById(int CinemaId) {
        return cinemaDao.getCinemaById(CinemaId);
    }

    @Override
    public List<Cinema> getCinemasByKey(String key) {
        return cinemaDao.getCinemasByKey(key);
    }

    @Override
    public boolean addCinema(Cinema cinema) {
        return addCinema(cinema);
    }
}
